﻿@model LeadMaster.Models.Regions

@if (ViewBag.errmsg!=null)
{
 <label style="color: #FF0000">@ViewBag.errmsg</label>
 <div class="spacer"></div>
}


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend style="width: 180px;">Edit Region</legend>

        @Html.HiddenFor(model => model.RegionsID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>
        <div class="spacer"></div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Postcodes)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Postcodes, new { @class="notes" })
            @Html.ValidationMessageFor(model => model.Postcodes)
        </div>
        <div class="spacer"></div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div class="spacer"></div>
<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
